package puzzle.ftest.solver.giant;

import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;

import org.junit.Test;

import puzzle.common.solver.SolverAbortingException;
import puzzle.ftest.solver.base.SolverTestBase;
import puzzle.slilin2.data.SlilinBoard;
import puzzle.slilin2.view.swing.SlilinSolverAppMetadata;

public class SlilinSolverTestWithGiant extends SolverTestBase<SlilinBoard>{

	public SlilinSolverTestWithGiant() {
		super(new SlilinSolverAppMetadata());
	}

	private void solve(String name) throws SolverAbortingException, IOException {
		Reader r = new FileReader("resource/problem/slilin/" + name);
		SlilinBoard b = m_metadata.createLoader().load(r);
		solve(name, b);
	}
	
	@Test
	public void test105() throws IOException, SolverAbortingException {
		solve("slilin-nikoli-105-7.txt");
	}
	
	@Test
	public void test111() throws SolverAbortingException, IOException {
		solve("slilin-nikoli-111-7.txt");
	}
	
	@Test
	public void test125() throws SolverAbortingException, IOException {
		solve("slilin-nikoli-125-8.txt");
	}

}
